<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.opensymphony.xwork2.ActionContext"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page language="java" pageEncoding="utf-8" import="java.util.*" 
contentType="text/html;charset=utf-8"%>
<html>
	<head>
		<title>login</title>
		<!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="css/style.css" /> -->
			
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href='<s:url value="/css/style.css"/>' />	
			
			<%
			Date d=new Date();
		/* 	pageContext.setAttribute("d", d); */
			ValueStack vs=ActionContext.getContext().getValueStack();
			vs.setValue("#session.d", d);
			%>
	</head>

	<body>
		<div id="wrap">
			<div id="top_content">
					<div id="header">
						<div id="rightheader">
							<p>
								<!-- 2009/11/20 -->
								
								<%-- <fmt:formatDate value="${pageScope.d }" 
								pattern="yyyy-MM-dd HH:mm:ss"/> --%>
		
								<s:date name="#session.d" />	
								<%-- <s:date name="#session.d" format="yyyy-MM-dd"/>	 --%>							
								<br />
							</p>
						</div>
						<div id="topheader">
							<h1 id="title">
								<a href="#">main</a>
							</h1>
						</div>
						<div id="navigation">
						</div>
					</div>
				<div id="content">
					<p id="whereami">
					</p>
					<h1>
						login
					</h1>
					<!-- <form action="emplist.html" method="post"> -->
					<%-- <form action='<s:url nameapace="/" action="user_login"/>' method="post"> --%>
					<form action="<s:url namespace="/" action="user_login"/> " method="post">
						<table cellpadding="0" cellspacing="0" border="0"
							class="form_table">
							<tr>
								<td valign="middle" align="right">
									username:
								</td>
								<td valign="middle" align="left">
									<input type="text" class="inputgri" name="username"
									value="${cookie.username.value }"/>
								</td>
							</tr>
							
							<%-- <tr><td><input type="text" name="userName" 
							value="${cookie.userName.value }"></td></tr>
    						<tr><td><input type="password" name="passWord" 
    						value="${cookie.passWord.value }"></td></tr> --%>
							
							
							<tr>
								<td valign="middle" align="right">
									password:
								</td>
								<td valign="middle" align="left">
									<input type="password" class="inputgri" name="password"
									value="${cookie.password.value }"/>
								</td>
							</tr>
						</table>
						<p>
							<input type="submit" class="button" value="Submit &raquo;" />
						 	<input type="button" onclick="javascript:location.href='${pageContext.request.contextPath}/regist.jsp'" 
							class="button"  value="Regist&raquo;" />
							
							<%--  <a href="<s:url value="/regist.jsp"/> "></a>  --%>
						</p>
					</form>
				</div>
			</div>
			<div id="footer">
				<div id="footer_bg">
					ABC@126.com
				</div>
			</div>
		</div>
	</body>
</html>
